<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改参与人员')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-celebrity-edit" th:object="${celebrity}">
            <input name="celebrityId" th:field="*{celebrityId}" type="hidden">
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">中文名：</label>
                <div class="col-sm-8">
                    <input name="celebrityChsname" th:field="*{celebrityChsname}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">英文名：</label>
                <div class="col-sm-8">
                    <input name="celebrityEngname" th:field="*{celebrityEngname}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">身份 (中文版）：</label>
                <div class="col-sm-8">
                    <input name="celebrityChsidentity" th:field="*{celebrityChsidentity}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">身份 (英文版）：</label>
                <div class="col-sm-8">
                    <input name="celebrityEngidentity" th:field="*{celebrityEngidentity}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">相关介绍：</label>
                <div class="col-sm-8">
                    <textarea name="celebrityIntro" class="form-control">[[*{celebrityIntro}]]</textarea>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">参与人员标记 (1: 有效，0: 无效)：</label>
                <div class="col-sm-8">
                    <input name="celebrityStatus" th:field="*{celebrityStatus}" class="form-control" type="text" required>
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "system/celebrity";
        $("#form-celebrity-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-celebrity-edit').serialize());
            }
        }
    </script>
</body>
</html>